home *** CD-ROM | disk | FTP | other *** search
-
- STRING{/LEFT=n}{/RIGHT=n} variable {string1 {string2 {string3}}}
- Assigns a string of characters to an environment variable that is either
- typed in by the user or extracted from one of the special strings. When
- two strings are specified they are first linked together(concatenated)
- before any characters are extracted.
-
- /LEFT=n Counting from the left, the number of the character to
- begin extraction.
- /RIGHT=n Counting from the left, the number of the character to
- end extraction.
- variable Environment variable to receive string (special name ECHO
- will echo to standard output rather than variable).
- string1 String to assign to environment variable.
- string2 Optional second string to concatenate after string1.
- string3 Optional third string to concatenate after string2.
- Special strings available:
-
- ?"prompt" Prompts for input with echo. Expands to typed input.
- ^"prompt" Prompts for input with no echo. Expands to typed input.
- !"DATE" Expands to the current date.
- !"DIRECTORY" Expands to current disk and directory.
- !"EX=pathname" Expands to the true path of a file..
- !"INSTALLED" Expands to characters corresponding to installed programs.
- N=NETBIOS R=REDIR S=SERVER P=LANPUP -=Not installed
- !"LOGIN=server" Expands to "TRUE" if logged in to server, otherwise it
- expands to "FALSE".
- !"NODEID" Expands to the current 12 digit NETBIOS node number.
- !"MACHINEID" Expands to the machine name.8
- !"PROGRAM" Expands to the full path of the STRING program.
- !"TIME" Expands to the current time.
- !"USERID" Expands to the current users name.
-
-
-
- STRING.COM 1.00 - 4 July 1991
-
- 1. What is STRING.COM?
- String.com is a program designed to allow you to place keyboard input into
- an environmental variable in the master enviornment. The syntax and oper-
- ation of string is the same as the Lantastic(tm) net string command with
- the following exceptions:
-
- Net String requires a pre existing environmental variable, string.com does
- not.
-
- Net String pads the input with spaces, ie if you set up a variable with 10
- characters and input 2 character, Net String will fill the variable with
- spaces. String.com will place only 2 characters in AsciiZ format in the
- variable.
-
- String has the reserved variable name echo, using this variable name will
- cause the output to be echoed to the screen. This duplicates the NET ECHO
- command.
-
- String has two additional special strings !"EXPAND=filename" this dup-
- icates the NET EXPAND command. The second !"USERID" expands to the
- current user name.
-
- 2. How do I install STRING.COM?
- Installation of STRING could not be easier, copy STRING.COM, STRING.hlp,
- to a directory on the path.C:\Lantasti is good but not necessary. IF
- ANET.COM can fine string in the current path, you can use the command
- ANET string to call string.com. (This abbility means you can rename
- ANET.com NET.com and continue to use your current batch files.)
-
- 3. How do I use STRING.COM?
- STRING.COM can be used on any computer running MSDOS or PCDOS 3.1 or
- above, Lantastic in not required. (Lantastic specific special strings
- will not work without Lantastic.) The uses for string can be many and
- varied. Below is an example of string used in the autoexec.bat file.
-
- @echo off
- PROMPT $P$G
- set TEMP=d:\WINDOWS\TEMP
- PATH C:\DOS;D:\WINDOWS;C:\UTIL;C:\BAT;D:\BORLANDC\BIN
- string answer ?"Optomize disk ?" PROMPT FOR INPUT STORE IT IN ANSWER
- if %answer%==N goto scan IF ANSWER anything but N optomize
- c:
- vopt c:
- :scan
- string answer ?"Scan disks for virus ?" PROMPT for input again
- if %answer%==N goto lan IF ANSWER anything but N scan
- scan c:
- :lan
- string answer ?"Load network ?"
- if %answer%==N goto win IF ANSWER anything but N load network
- path %path%;c:\lantasti
- ae2 irq=15
- ailanbio
- redir rick logins=2
- string answer ?"Load server ?" IF ANSWER anything but N load server
- if %answer%==N goto win
- server
- :win
- string answer ?"Load Windows? " IF ANSWER anything but N load windows
- if %answer%==N goto end
- string /left=3 /right=3 answer !"INSTALLED" Get network software installed
- if %answer==S goto wins IF server installed go to win/s
- win Server not installed load windows in enh
- mode.
- goto end
- wins:
- win/s Server installed load windows in standard
- mode.
- :end
- set answer= Get rid of variable answer
-
-
-
- 4. Legalities
- STRING.COM is not freeware, nor is it in the public domain. It is a
- shareware program, and the entire program and documentation are
- Copyright (C) 1991, Rick R. Roth, Tucson, Az. You are encouraged
- to copy the package freely, including distribution by BBS, shareware
- library, or other means, provided that (1) the distribution shall
- consist of the original archive containing the program and this doc-
- umentation file, and (2) no fee of more than five US dollars ($5)
- shall be charged for the copy.
-
- Lantastic is a registered trademake of Artisof4t, INC.
-
- 5. Registration
- To register your copy of STRING.COM, send $10 in cash, check or money
- order to:
-
- Rick R. Roth
- 4072 E. 22nd St.
- Suite 178
- Tucson, Az 85711
-
- THIS COPY IS LICENSED FOR THE EXCLUSIVE USE OF THE LICENSEE.
- This license is good for one network, and the software can be installed
- on all computers on this network.
-
- 6. Liability
-
- ╔═══════════════════════════════════════════════════════════════╗
- ║ ║
- ║ LIMIT OF LIABILITY ║
- ║ ────────────────── ║
- ║ The author disclaims all warranties, expressed or ║
- ║ implied and assumes no liability for damages either from its ║
- ║ direct use or as a consequence of its use. Have you hugged ║
- ║ your backup today? ║
- ║ ║
- ╚═══════════════════════════════════════════════════════════════╝
-
-
- I have tested it on several computers and found that found that it works
- well on all of them. All computers have been running LANtastic(tm) NOS v3.03
- and above and all running MS DOS 3.3 and above.
-
- Please note that while the author is an employee of Artisoft, Inc., Artisoft
- is not responsible for the contents of this file; the functioning of STRING.COM
- (or any damages resulting from the use or misuse of the program); and further,
- Artisoft Technical Support and other employees of Artisoft, Inc. are
-
- NOT RESPONSIBLE FOR SUPPORTING THIS PROGRAM!
-
- If you have problems or suggestions when using this program, direct them to
- me Rick R. Roth through one of the following channels:
-
- US Mail: 4702 E 22nd St, Tucson, AZ 85711
- CompuServ: Artisoft forum, 75300,1377
- Arti-facts BBS: If you have a current account there.
-
-
- Do NOT call the author during business hours for support, this program was
- not written during business hours, it will not be supported during business
- hours.
-
-
-